Skip to content

fix(zen): negative wpm in short tests (@Leonabcd123, @miodec)#7679

Merged
Miodec merged 6 commits intomonkeytypegame:masterfrom
Leonabcd123:negative-wpm-in-zen
Mar 22, 2026
Merged

fix(zen): negative wpm in short tests (@Leonabcd123, @miodec)#7679
Miodec merged 6 commits intomonkeytypegame:masterfrom
Leonabcd123:negative-wpm-in-zen

Conversation

@Leonabcd123
Copy link
Contributor

@Leonabcd123 Leonabcd123 commented Mar 18, 2026

Description

Force keyup for every held key other than the last held key, and calculate its duration by doing: now - keypress.timestamp. For the last key, use the mean as we do now.

Fixes #7099

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 18, 2026
@Leonabcd123 Leonabcd123 changed the title fix(zen): negative wpm in short zen tests (@Leonabcd123) fix(zen): negative wpm in short tests (@Leonabcd123) Mar 18, 2026
@Leonabcd123 Leonabcd123 marked this pull request as draft March 18, 2026 19:36
@Leonabcd123 Leonabcd123 force-pushed the negative-wpm-in-zen branch from 16c00c1 to 81e6c0a Compare March 18, 2026 19:47
@Leonabcd123 Leonabcd123 marked this pull request as ready for review March 18, 2026 19:50
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 18, 2026
@Leonabcd123 Leonabcd123 force-pushed the negative-wpm-in-zen branch 2 times, most recently from f9db1e7 to 62884d1 Compare March 22, 2026 16:29
@Leonabcd123 Leonabcd123 force-pushed the negative-wpm-in-zen branch from 62884d1 to a903323 Compare March 22, 2026 18:31
@Leonabcd123 Leonabcd123 changed the title fix(zen): negative wpm in short tests (@Leonabcd123) fix(zen): negative wpm in short tests (@Leonabcd123, @miodec) Mar 22, 2026
@Miodec Miodec merged commit 96acd40 into monkeytypegame:master Mar 22, 2026
19 checks passed
@github-actions github-actions bot removed the waiting for review Pull requests that require a review before continuing label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WPM going negative in extremely short Zen tests.

3 participants